package com.css.fxfzcpxx.modules.certificateManage.repository;

import com.css.fxfzcpxx.modules.certificateManage.entity.CertificateManage;
import com.css.fxfzcpxx.modules.certificateManage.entity.CertificateRule;
import com.css.fxfzcpxx.modules.certificateManage.entity.UserCertificate;
import com.css.fxfzcpxx.modules.certificateManage.vo.CertificateRuleVo;

import java.util.List;

public interface CertificateManageRepository {
    void save(CertificateManage certificateManage);

    void update(CertificateManage certificateManage);

    void previewDel(String id);

    List<CertificateManage> queryAll();

    void updateRule(CertificateRule rule);

    CertificateManage queryByName(String pictureName);

    List<CertificateRuleVo> queryRule();

    void saveRule(CertificateRule rule);

    CertificateRule findRuleById(String id);

    void deleteRule();

    void saveUserCertificate(UserCertificate userCertificate);

    CertificateManage findById(String id);

    List<UserCertificate> getUserCertificate(String userID);

    CertificateRule findRuleByCertificateId(String id);
}
